package com.chen.dao;

import com.chen.pojo.Release;
import com.chen.vo.ReleaseVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ReleaseMapper {
    //根据id查询发布信息
    @Select("select * from csrsystem.csrsystem_release where release_id = #{releaseId}")
    Release queryReleaseById(@Param("releaseId") int releaseId);

    //查询全部信息
    @Select("select * from csrsystem.csrsystem_release")
    List<Release> queryAllRelease();

    /**
     * 添加预约订单
     * @param release
     * @return
     */
    int addRelease(Release release);

    /**
     * 查询申请列表
     * @param releaseVo
     * @return
     */
    List<Release> list(ReleaseVo releaseVo);
}
